package whf.framework.security.entity;

/**
 * 关联条件，多用于系统对象的发布
 * 描述未：某个对象对哪些类型的用户拥有权限，任意条件相为空表示排除在条件之外
 * 如果boid为空，则对于整个类型的对象都拥有权限
 * @author wanghaifeng
 * @create Sep 14, 2006 12:02:49 AM
 * 
 */
public class RelationCondition {
	/**
	 * 发布对象类型，必须的
	 * @property String:type
	 */
	private String type;
	
	/**
	 * 发布对象的编号，0为空对象
	 * @property long:boId
	 */
	private long boId;
	
	/**
	 * 发布到用户类型
	 * @property UserType:userType
	 */
	private UserType userType;
	
	/**
	 * 关联到角色
	 * @property Role:role
	 */
	private Role role;
	
	/**
	 * 关联到部门
	 * @property Dept:dept
	 */
	private Dept dept;

	/**
	 * @return Returns the boId.
	 */
	public long getBoId() {
		return boId;
	}

	/**
	 * @param boId The boId to set.
	 */
	public void setBoId(long boId) {
		this.boId = boId;
	}

	/**
	 * @return Returns the dept.
	 */
	public Dept getDept() {
		return dept;
	}

	/**
	 * @param dept The dept to set.
	 */
	public void setDept(Dept dept) {
		this.dept = dept;
	}

	/**
	 * @return Returns the role.
	 */
	public Role getRole() {
		return role;
	}

	/**
	 * @param role The role to set.
	 */
	public void setRole(Role role) {
		this.role = role;
	}

	/**
	 * @return Returns the type.
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type The type to set.
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return Returns the userType.
	 */
	public UserType getUserType() {
		return userType;
	}

	/**
	 * @param userType The userType to set.
	 */
	public void setUserType(UserType userType) {
		this.userType = userType;
	}
}
